import Vue from 'vue';
import App from './App.vue';
import router from './router';
import './plugins/element-ui.js';
import './assets/index.less';
import './plugins/axios.js';
import './plugins/promise.js';
import './plugins/lodash.js';
import dayjs from 'dayjs';

Vue.config.productionTip = false;

// 日期格式化全局过滤器
Vue.filter('df', (data, pattern = 'YYYY-MM-DD HH:mm:ss') =>
  dayjs(data).format(pattern)
);

new Vue({
  el: '#app',
  router,
  render: (createElement) => createElement(App),
}).$mount('#app');
